package zhh.tangbao.auxiliary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 数据统计日志
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/4/27</p>
 */

@Data
@TableName("data_statistics_log")
public class DataStatisticsLog {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recordTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordEndTime;

    public DataStatisticsLog() {
    }

    public DataStatisticsLog(Integer id, Date recordTime, Date recordStartTime, Date recordEndTime) {
        this.id = id;
        this.recordTime = recordTime;
        this.recordStartTime = recordStartTime;
        this.recordEndTime = recordEndTime;
    }
}
